package mr.ali.videoapp.portal.controller;


import mr.ali.videoapp.portal.model.CollectionTag;
import mr.ali.videoapp.portal.service.ICollectionTagService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Mr-ali
 * @since 2025-06-01
 */
@RestController
@RequestMapping("/portal/collectionTag")
public class CollectionTagController {
    @Resource
    private ICollectionTagService collectionTagService;

    @GetMapping("/all")
    public List<CollectionTag> getCollection() {
        return collectionTagService.findByAll();
    }
}
